/* 主题CSS变量定义 */
:root {
  --primary-color: #1677ff;
  --transition-duration: 0.3s;
}

/* 暗色模式下的样式调整 */
.dark {
  /* Ant Design组件在暗色模式下的样式微调 */
}

/* 主题切换动画 */
* {
  transition:
    background-color var(--transition-duration) ease,
    border-color var(--transition-duration) ease,
    color var(--transition-duration) ease;
}

/* 自定义组件暗色模式适配 */
.dark .ant-layout-header {
  background-color: #1f1f1f !important;
}

.dark .ant-layout-sider {
  background-color: #001529 !important;
}

/* 确保抽屉在暗色模式下正确显示 */
.dark .ant-drawer-content {
  background-color: #1f1f1f;
}

.dark .ant-drawer-header {
  background-color: #1f1f1f;
  border-bottom-color: #303030;
}

.dark .ant-drawer-body {
  background-color: #1f1f1f;
}

/* 主题颜色选择器样式 */
.theme-color-item {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.theme-color-item:hover {
  transform: scale(1.1);
}

.theme-color-item.active {
  border-color: #d9d9d9;
  transform: scale(1.1);
}

.theme-color-item .check-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 14px;
}

/* 主题风格选择器样式 */
.theme-style-item {
  position: relative;
  width: 56px;
  height: 40px;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid #d9d9d9;
  transition: all 0.3s ease;
  overflow: hidden;
}

.theme-style-item:hover {
  transform: scale(1.05);
}

.theme-style-item.active {
  border-color: #1677ff;
}

.theme-style-item .check-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #1677ff;
  color: white;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}
